package com.hongyuan.sellfitness.ui.home.beans;

import com.hongyuan.sellfitness.data.md5.BaseUtil;
import com.hongyuan.sellfitness.utils.TimeUtil;

import java.util.List;

public class MyMemberCardList {

    private List<ListBean> list;

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean {
        /**
         * my_card_id : 14
         * m_id : 3
         * os_id : 22
         * my_card_type : 1
         * open_time : 0
         * my_card_time : 1567612800
         * last_time : 0
         * my_card_days : 2190
         * osl_id : 0
         * card_img :
         * card_name :
         * card_money : 0.00
         * day_money : 0.00
         * o_id : 0
         * card_id : 0
         * card_no :
         * os_id_sign : 0
         * add_time : 0
         * ct_id : 1
         * card_note : null
         * is_stop : 0
         * is_valid : 1
         * card_attribute : 1
         * card_num : 0
         * card_have_num : 0
         * card_spend_num : 0
         * gc_id : 0
         * all_days : 0
         * stand_days : 0
         * can_transfer : 0
         * card_type_name : 门店卡
         * open_date : 0
         * last_date : 0
         * is_first : 1
         * my_card_date : 2019-09-05 00:00:00
         * os_names : 湖州首玺健身湖东店
         * gc_name :
         */

        private int my_card_id;
        private int m_id;
        private String os_id;
        private int my_card_type;
        private int open_time;
        private int my_card_time;
        private int last_time;
        private int my_card_days;
        private int osl_id;
        private String card_img;
        private String card_name;
        private String card_money;
        private String day_money;
        private int o_id;
        private int card_id;
        private String card_no;
        private int os_id_sign;
        private int add_time;
        private int ct_id;
        private Object card_note;
        private int is_stop;
        private int is_valid;
        private int card_attribute;
        private int card_num;
        private int card_have_num;
        private int card_spend_num;
        private int gc_id;
        private int all_days;
        private int stand_days;
        private int can_transfer;
        private String card_type_name;
        private String open_date;
        private String last_date;
        private int is_first;
        private String my_card_date;
        private String os_names;
        private String gc_name;

        public int getMy_card_id() {
            return my_card_id;
        }

        public void setMy_card_id(int my_card_id) {
            this.my_card_id = my_card_id;
        }

        public int getM_id() {
            return m_id;
        }

        public void setM_id(int m_id) {
            this.m_id = m_id;
        }

        public String getOs_id() {
            return os_id;
        }

        public void setOs_id(String os_id) {
            this.os_id = os_id;
        }

        public int getMy_card_type() {
            return my_card_type;
        }

        public void setMy_card_type(int my_card_type) {
            this.my_card_type = my_card_type;
        }

        public int getOpen_time() {
            return open_time;
        }

        public void setOpen_time(int open_time) {
            this.open_time = open_time;
        }

        public int getMy_card_time() {
            return my_card_time;
        }

        public void setMy_card_time(int my_card_time) {
            this.my_card_time = my_card_time;
        }

        public int getLast_time() {
            return last_time;
        }

        public void setLast_time(int last_time) {
            this.last_time = last_time;
        }

        public int getMy_card_days() {
            return my_card_days;
        }

        public void setMy_card_days(int my_card_days) {
            this.my_card_days = my_card_days;
        }

        public int getOsl_id() {
            return osl_id;
        }

        public void setOsl_id(int osl_id) {
            this.osl_id = osl_id;
        }

        public String getCard_img() {
            return card_img;
        }

        public void setCard_img(String card_img) {
            this.card_img = card_img;
        }

        public String getCard_name() {
            return card_name;
        }

        public void setCard_name(String card_name) {
            this.card_name = card_name;
        }

        public String getCard_money() {
            return card_money;
        }

        public void setCard_money(String card_money) {
            this.card_money = card_money;
        }

        public String getDay_money() {
            return day_money;
        }

        public void setDay_money(String day_money) {
            this.day_money = day_money;
        }

        public int getO_id() {
            return o_id;
        }

        public void setO_id(int o_id) {
            this.o_id = o_id;
        }

        public int getCard_id() {
            return card_id;
        }

        public void setCard_id(int card_id) {
            this.card_id = card_id;
        }

        public String getCard_no() {
            return card_no;
        }

        public void setCard_no(String card_no) {
            this.card_no = card_no;
        }

        public int getOs_id_sign() {
            return os_id_sign;
        }

        public void setOs_id_sign(int os_id_sign) {
            this.os_id_sign = os_id_sign;
        }

        public int getAdd_time() {
            return add_time;
        }

        public void setAdd_time(int add_time) {
            this.add_time = add_time;
        }

        public int getCt_id() {
            return ct_id;
        }

        public void setCt_id(int ct_id) {
            this.ct_id = ct_id;
        }

        public Object getCard_note() {
            return card_note;
        }

        public void setCard_note(Object card_note) {
            this.card_note = card_note;
        }

        public int getIs_stop() {
            return is_stop;
        }

        public void setIs_stop(int is_stop) {
            this.is_stop = is_stop;
        }

        public int getIs_valid() {
            return is_valid;
        }

        public void setIs_valid(int is_valid) {
            this.is_valid = is_valid;
        }

        public int getCard_attribute() {
            return card_attribute;
        }

        public void setCard_attribute(int card_attribute) {
            this.card_attribute = card_attribute;
        }

        public int getCard_num() {
            return card_num;
        }

        public void setCard_num(int card_num) {
            this.card_num = card_num;
        }

        public int getCard_have_num() {
            return card_have_num;
        }

        public void setCard_have_num(int card_have_num) {
            this.card_have_num = card_have_num;
        }

        public int getCard_spend_num() {
            return card_spend_num;
        }

        public void setCard_spend_num(int card_spend_num) {
            this.card_spend_num = card_spend_num;
        }

        public int getGc_id() {
            return gc_id;
        }

        public void setGc_id(int gc_id) {
            this.gc_id = gc_id;
        }

        public int getAll_days() {
            return all_days;
        }

        public void setAll_days(int all_days) {
            this.all_days = all_days;
        }

        public int getStand_days() {
            return stand_days;
        }

        public void setStand_days(int stand_days) {
            this.stand_days = stand_days;
        }

        public int getCan_transfer() {
            return can_transfer;
        }

        public void setCan_transfer(int can_transfer) {
            this.can_transfer = can_transfer;
        }

        public String getCard_type_name() {
            return card_type_name;
        }

        public void setCard_type_name(String card_type_name) {
            this.card_type_name = card_type_name;
        }

        public String getOpen_date() {
            return open_date;
        }

        public void setOpen_date(String open_date) {
            this.open_date = open_date;
        }

        public String getLast_date() {
            return last_date;
        }

        public void setLast_date(String last_date) {
            this.last_date = last_date;
        }

        public int getIs_first() {
            return is_first;
        }

        public void setIs_first(int is_first) {
            this.is_first = is_first;
        }

        public String getMy_card_date() {
            return my_card_date;
        }

        public void setMy_card_date(String my_card_date) {
            this.my_card_date = my_card_date;
        }

        public String getOs_names() {
            return os_names;
        }

        public void setOs_names(String os_names) {
            this.os_names = os_names;
        }

        public String getGc_name() {
            return gc_name;
        }

        public void setGc_name(String gc_name) {
            this.gc_name = gc_name;
        }

        public String getShowData(){
            if(BaseUtil.isValue(last_date) && "0".equals(last_date)){
                return last_date+"天";
            }else{
                return TimeUtil.formatDate(last_date,
                        TimeUtil.dateFormatYMDHMS,TimeUtil.dateFormatDotYMD)+"到期";
            }
        }
    }
}
